package es

import (
	"fmt"
	"github.com/elastic/go-elasticsearch/v7"
)

func InitElastic() {
	cfg := elasticsearch.Config{
		Addresses: []string{
			"http://110.41.151.206:9200",
		},
		// ...
	}
	es, err := elasticsearch.NewClient(cfg)
	fmt.Println(es, err)
}
